package pojo;

public class Teacher extends User{

    private int courseId;

    public Teacher() {
    }

    public Teacher(String username, String password, String name, String sex, int age, String photo, int courseId) {
        super(username, password, name, sex, age, photo);
        this.courseId = courseId;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "courseId=" + courseId +
                "} " + super.toString();
    }
}
